package com.sky.service;

import com.sky.dto.OrdersConfirmDTO;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.OrdersPaymentDTO;
import com.sky.dto.OrdersRejectionDTO;
import com.sky.entity.Orders;
import com.sky.result.PageBean;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {

    //用户下单
    OrderSubmitVO save(Orders orders);

    // 订单支付
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO);

    //历史订单查询    //订单搜索
    PageBean findByPage(OrdersPageQueryDTO ordersOrderDTO);

    //订单详情
    OrderVO findById(Long orderId);

    //取消订单
    void cancelById(Long orderId);

    //再来一单
    void repetitionById(Long orderId);

    //各个状态的订单详情
    OrderStatisticsVO statistics();

    //接单
    void confirm(OrdersConfirmDTO dto);

    //拒单
    void rejection(OrdersRejectionDTO dto);

    //取消订单
    void cancel(OrdersRejectionDTO dto);

    //派送订单
    void delivery(Long id);

    //完成订单
    void complete(Long id);

    //催单
    void reminder(Long orderId);
}
